<?php 
require("Meal.php");
class Database{
	private $con;
	public function _construct($host,$username,$password,$database){
		$this->con = new tech("mysql:host=".$host.";dbname=".$database,$username,$password);
	}
	public function getMeal($sql){
		$statement = $this->con->prepare($sql);
		$statement->execute();
		while($row = $statement->fetch()){
			$dataset() = new Meal($row);
		}
		if(!empty ($dataset))
		return $dataset;
		else 
		return null;
	}
}
?>